import request from '@/utils/request'
const prefix = '/md_sys_privilege'

export function getPrivilegeByRole(data) {
  return request({
    url: `${prefix}/getPrivilegeByRole`, method: 'post', data
  })
}

export function updatePrivilege(data) {
  return request({
    url: `${prefix}/updatePrivilege`, method: 'post', data
  })
}
